{% extends 'base.html' %}

{% block title %}{{ username }}的书签{% endblock %}

{% block content %}
{% ifequal user.username username %}
    <a href="{% url 'friends' username %}">查看你的好友</a>
{% else %}
    {% if is_friend %}
        <p class="text-danger">{{ username }}是你的好友</p>
    {% else %}
        <a href="{% url 'new_friend' %}?username={{ username }}">添加{{ username }}为你的好友</a>
    {% endif %}
{% endifequal %}

<h1>{{ username }}的书签: </h1>
{% include 'bookmarks/_bookmark_list.html' %}

{% endblock %}